From b354b4e7de3149cd236f1c207c8405b958c8ebc4 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 17 Jul 2003 03:26:40 +0000 Subject: [PATCH] Deliver useful error on unknown input type. --- gpilots.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpilots.c b/gpilots.c index deeef5281..60db2ec29 100644 --- a/gpilots.c +++ b/gpilots.c @@ -282,7 +282,9 @@ data_read(void) route_add_wpt(track_head, wpt_tmp); tp++; } - + break; + default: + fatal(MYNAME ": input record type %d not supported.\n", rec->header.type); } #if 0 if ( be_read32(&rec->elevation) == -100000000 ) { -- 2.30.2